const setting = {
  path: '/setting',
  name: 'setting',
  hidden: false,
  active: true,
  meta: {
    id: '7',
    title: '设置',
    icon: 'ios-settings',
  },
  component: resolve => require(['@/views/Base'], resolve),
  children: [{
    path: '/setting/node/edit',
    name: 'setting/node/edit',
    hidden: false,
    component: resolve => require(['@/views/setting/node/NodeEdit'], resolve),
    meta: {
      id: '7-1',
      title: '节点管理',
      keepAlive: true,
      active: false,
    }
  }, {
    path: '/setting/role/list',
    name: 'setting/role/list',
    hidden: false,
    component: resolve => require(['@/views/setting/role/RoleList'], resolve),
    meta: {
      id: '7-2',
      title: '角色列表',
      keepAlive: true,
      active: false,
    }
  }, {
    path: '/setting/role/edit',
    name: 'setting/role/edit',
    hidden: true,
    component: resolve => require(['@/views/setting/role/RoleEdit'], resolve),
    meta: {
      id: '7-2',
      title: '角色列表'
    }
  },
  {
    path: '/setting/info/index',
    name: 'setting/info/index',
    component: resolve => require(['@/views/setting/info/InfoIndex'], resolve),
    meta: {
      id: '7-3',
      title: '个人信息',
      keepAlive: true
    }
  },
  {
    path: '/setting/admin/list',
    name: 'setting/admin/list',
    hidden: false,
    component: resolve => require(['@/views/setting/admin/AdminList'], resolve),
    meta: {
      id: '7-4',
      title: '管理员',
      keepAlive: true
    } 
  },
  {
    path: '/setting/admin/edit',
    name: 'setting/admin/edit',
    hidden: true,
    component: resolve => require(['@/views/setting/admin/AdminEdit'], resolve),
    meta: {
      id: '7-4',
      title: '管理员',
      keepAlive: true
    }  
  }, {
    path: '/setting/base/list',
    name: 'setting/base/list',
    hidden: false,
    component: resolve => require(['@/views/setting/base/BaseList'], resolve),
    meta: {
      id: '7-5',
      title: '基础属性',
      keepAlive: true
    } 
  }, {
    path: '/setting/base/edit',
    name: 'setting/base/edit',
    hidden: true,
    component: resolve => require(['@/views/setting/base/BaseEdit'], resolve),
    meta: {
      id: '7-5',
      title: '基础属性',
      keepAlive: true
    } 
  }, {
    path: '/setting/field/list',
    name: 'setting/field/list',
    hidden: false,
    component: resolve => require(['@/views/setting/field/FieldList'], resolve),
    meta: {
      id: '7-6',
      title: '详情表单',
      keepAlive: true
    }
  }, {
    path: '/setting/field/edit',
    name: 'setting/field/edit',
    hidden: true,
    component: resolve => require(['@/views/setting/field/FieldEdit'], resolve),
    meta: {
      id: '7-6',
      title: '详情表单',
      keepAlive: true
    }
  }
  // {
  //   path: '/setting/storeType/list',
  //   name: 'setting/storeType/list',
  //   component: resolve => require(['@/views/setting/storeType/StoreList'], resolve),
  //   meta: {
  //     id: '7-4',
  //     title: '门店类型',
  //     keepAlive: true,
  //   }
  // },
  // {
  //   path: '/setting/fundLimit/list',
  //   name: 'setting/fundLimit/list',
  //   component: resolve => require(['@/views/setting/fundLimit/FundLimitList'], resolve),
  //   meta: {
  //     id: '7-15',
  //     title: '基金限时设置',
  //     keepAlive: true,
  //   }
  // },
  // {
  //   path: '/setting/integralValid/list',
  //   name: 'setting/integralValid/list',
  //   hidden: true,
  //   component: resolve => require(['@/views/setting/integralValid/IntegralValidList'], resolve),
  //   meta: {
  //     id: '7-16',
  //     title: '积分有效期(经)',
  //     keepAlive: true,
  //   }
  // },
  // {
  //   path: '/setting/storeSet/edit',
  //   name: 'setting/storeSet/edit',
  //   hidden: false,
  //   component: resolve => require(['@/views/setting/storeSet/StoreEdit'], resolve),
  //   meta: {
  //     id: '7-18',
  //     title: '店铺设置'
  //   }
  // },
  // {
  //   path: '/setting/patrol/list',
  //   name: 'setting/patrol/list',
  //   component: resolve => require(['@/views/setting/patrol/PatrolShopList'], resolve),
  //   meta: {
  //     id: '7-19',
  //     title: '巡店设置',
  //     keepAlive: true,
  //   }
  // },
  // {
  //   path: '/setting/process/list',  // 第一次就隐藏的菜单
  //   name: 'setting/process/list',
  //   component: resolve => require(['@/views/setting/ywtProcess/ProcessList'], resolve),
  //   meta: {
  //     id: '7-20',
  //     title: '业务通流程',
  //     keepAlive: true,
  //   }
  // },
  // {
  //   path: '/setting/ywt/role/list',
  //   name: 'setting/ywt/role/list',
  //   component: resolve => require(['@/views/setting/ywtRole/RoleList'], resolve),
  //   meta: {
  //     id: '7-21',
  //     title: '业务通角色',
  //     keepAlive: true,
  //   }
  // },
  // {
  //   path: '/setting/contract/list',
  //   name: 'setting/contract/list',
  //   component: resolve => require(['@/views/setting/contract/ContractList'], resolve),
  //   meta: {
  //     id: '7-22',
  //     title: '合同管理',
  //     keepAlive: true,
  //   }
  // },
  // {
  //   path: '/setting/contract/edit',
  //   name: 'setting/contract/edit',
  //   hidden: true,
  //   component: resolve => require(['@/views/setting/contract/ContractEdit'], resolve),
  //   meta: {
  //     id: '7-22',
  //     title: '合同详情'
  //   }
  // },
  // {
  //   path: '/setting/factory/list',
  //   name: 'setting/factory/list',
  //   component: resolve => require(['@/views/setting/factory/FactoryList'], resolve),
  //   meta: {
  //     id: '7-5-1',
  //     title: '工厂',
  //     parent: '业务员',
  //     keepAlive: true,
  //   }
  // },
  // {
  //   path: '/setting/factory/edit',
  //   name: 'setting/factory/edit',
  //   hidden: true,
  //   component: resolve => require(['@/views/setting/factory/FactoryEdit'], resolve),
  //   meta: {
  //     id: '7-5-1',
  //     title: '工厂',
  //     parent: '业务员'
  //   }
  // },
  // {
  //   path: '/setting/dealers/list',
  //   name: 'setting/dealers/list',
  //   component: resolve => require(['@/views/setting/dealers/DealersList'], resolve),
  //   meta: {
  //     id: '7-5-2',
  //     title: '经销商',
  //     keepAlive: true,
  //     parent: '业务员'
  //   }
  // },
  // {
  //   path: '/setting/dealers/edit',
  //   name: 'setting/dealers/edit',
  //   hidden: true,
  //   component: resolve => require(['@/views/setting/dealers/DealersEdit'], resolve),
  //   meta: {
  //     id: '7-5-2',
  //     title: '经销商',
  //     parent: '业务员'
  //   }
  // },
  // {
  //   path: '/setting/distributorPda/list',
  //   name: 'setting/distributorPda/list',
  //   component: resolve => require(['@/views/setting/distributorPda/DistributorPdaList'], resolve),
  //   meta: {
  //     id: '7-27',
  //     title: 'PDA绑定',
  //     keepAlive: true
  //   }
  // },
  // {
  //     path: '/setting/rank/list',
  //     name: 'setting/rank/list',
  //     component: resolve => require(['@/views/setting/rank/RankList'], resolve),
  //     meta: {
  //       id: '7-25',
  //       title: '排行榜设置',
  //       keepAlive: true
  //     }
  //  },
  //  {
  //      path: '/setting/independentTeam/list',
  //      name: 'setting/independentTeam/list',
  //      component: resolve => require(['@/views/setting/IndependentTeam/IndependentTeamList'], resolve),
  //      meta: {
  //        id: '7-26',
  //        title: '独立团队',
  //        keepAlive: true
  //      }
  //   },
  //   {
  //       path: '/setting/horseRacing/list',
  //       name: 'setting/horseRacing/list',
  //       component: resolve => require(['@/views/setting/horseRacing/HorseRacingList'], resolve),
  //       meta: {
  //         id: '7-28',
  //         title: '赛马设置',
  //         keepAlive: true
  //       }
  //    },
  //    {
  //     path: '/setting/rule/set',
  //     name: 'setting/rule/set',
  //     component: resolve => require(['@/views/setting/rule/RuleSet'], resolve),
  //     meta: {
  //       id: '7-30',
  //       title: '规则参数',
  //       keepAlive: true
  //     }
  //  }
  ]
}

export default setting
